package org.idea.qiyu.framework.gateway.core.core;

import org.idea.qiyu.framework.gateway.starter.registry.ApplicationRegistry;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * 下游注册服务的监听器
 *
 * 新部署的应用可以在这里进行更新
 *
 * @Author linhao
 * @Date created in 9:26 上午 2022/4/17
 */
@Component
public class RegistryInfoListener implements IRegistryInfoListener{

    @Resource
    private ApplicationRegistry applicationRegistry;


    @Override
    public void subscribeUrl() {
        applicationRegistry.subscribeURL();
    }
}
